package com.itheima.core.service.impl;

import com.itheima.core.dao.RoleDao;
import com.itheima.core.dao.UserDao;
import com.itheima.core.po.Role;
import com.itheima.core.po.User;
import com.itheima.core.po.UserRole;
import com.itheima.core.service.RoleService;
import com.itheima.core.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户Service接口实现类
 */
@Service("roleService")
@Transactional
public class RoleServiceImpl implements RoleService {
	// 注入UserDao
	@Autowired
	private RoleDao roleDao;

	@Override
	public List<Role> findAllRole() {
		return roleDao.findAllRole();
	}
}
